{% extends "base/_base.html" %}
{% load bootstrap3 %}
{% load staticfiles %}

{% block  title %}{{ view.model_meta.verbose_name }} / {{ object }}{% endblock %}


{% block page-content %}

    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>信息浏览</h2>
            {% include "generic/breadcrumb.html" %}
        </div>
        <div class="col-lg-2">
        </div>
    </div>


    <div class="row wrapper wrapper-content animated fadeInRight">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">

                    <h5><span class="text-success">详细信息</span></h5>
                    <div class="ibox-tools">
                        <a id="return_page" class="btn btn-xs btn-warning btn-outline" style="display: none;" href="javascript:history.go(-1)">
                            <i class="fa fa-reply"></i> 返回上一页
                        </a>&nbsp;&nbsp;
                    </div>
                </div>
                <div class="ibox-content">

                    <table class="table">
                        <tbody>
                            {% for field in object.fields_list %}
                            <tr>
                                <td><b>{{ field.0 }}:</b></td>
                                <td>{{ field.1 }}</td>
                            </tr>

                            {% endfor %}

                            {% block add_object %}
                                <!-- 增加自定义行, 比如统计 -->
                            {% endblock %}
                        </tbody>
                    </table>



                </div>
            </div>
        </div>

    </div>

{% endblock %}



{% block footer-js %}
    <script>
        $(document).ready(function(){

            // 显示返回上一页按钮
            dom = document.getElementById('return_page')
            if (dom && window.history.length > 1) {
                dom.style.display = '';
            }

        });


    </script>
{% endblock footer-js %}




